package com.taotao.web;

import com.taotao.service.ItemService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * PageController
 * 主页Controller
 * Created by heqianqian on 2017/7/6.
 */
@Controller
public class PageController {

    private static final Logger LOGGER = LoggerFactory.getLogger(PageController.class);

    @Resource
    private ItemService itemService;

    /**
     * 主页
     */
    @RequestMapping("/")
    public String index() {
        return "index";
    }

    /**
     * 分页
     */
    @RequestMapping("/{page}")
    public String page(@PathVariable("page") String page) {
        return page;
    }

}
